"""Sun URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path
from init import views
from django.conf import settings
from django.views.static import serve

urlpatterns = [
    path('admin/', admin.site.urls),
    re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),

    path('',views.login),
    path('regist/',views.regist),


    path('stuIndex/',views.stuIndex),
    path('skebiao/',views.skebiao),
    path('stuIndex/xuanke',views.xuanke),
    path('xuanke/course',views.course),
    path('xuanke/ctable',views.ctable),


    path('stuIndex/gonggao',views.gonggao),
    path('stuIndex/stuTask',views.stuTask),
    path('stuIndex/stuGrade',views.stuGrade),
    re_path(r'^stuIndex/stuTask/(\d+)',views.stuTask),
    path('qiandao_ajax',views.qiandao_ajax),
    path('stuIndex/stuTask/zuoyetj',views.zuoyetj),
    re_path(r'^stuIndex/stuTask/zuoyetj/(\d+)',views.zuoyetj),
    path('stuIndex/stuTask/ly',views.ly),
    path('zuoyetj/ajax_tjstu',views.ajax_tjstu),


    path('teaIndex/',views.teaIndex),
    path('change/',views.change),
    path('info_ajax/',views.info_ajax),
    path('event_ajax',views.event_ajax),
    path('jxrili_ajax',views.jxrili_ajax),
    path('teaIndex/tcallendar',views.tcallendar),
    path('teaIndex/teapick',views.teapick),
    path('picknext',views.picknext),
    re_path(r'^teaIndex/(\d+)',views.teaIndex),
    path('teaIndex/ly',views.ly),

    path('teaIndex/teaTask',views.teaTask),
    path('teaIndex/teaTask/detail', views.detail),
    path('teaIndex/teaTask/cdetail', views.cdetail),
    path('rlprint/', views.rlprint),

    path('teaIndex/teaTask/zuoye',views.zuoye),
    re_path(r'^teaIndex/teaTask/zuoye/(\d+)',views.zuoye),
    path('teaIndex/teaTask/chengji',views.chengji),

    path('teaIndex/test',views.test),

    path('zuoye/ajax_tj',views.ajax_tj),
    path('teaIndex/teaTask/qdshow',views.qdshow),


    path('teaIndex/teaTask/chengji/select',views.select),
    path('download',views.download),

]
